import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'

import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './style.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'



// createApp(App).use(router).use(ElementPlus).mount('#app')

const app = createApp(App)

app.use(ElementPlus)

import 'virtual:windi.css'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(router)


/** 定义一个函数，用于对象链式取值 */
const getObjChainingVal = (obj, keyName) => {
    // ...
    return tempObj
}  
// app.config.globalProperties.$MES_IP = "http://47.102.106.21"
// app.config.globalProperties.$MES_IP = "http://127.0.0.1"
// 正式环境
app.config.globalProperties.$MES_IP = "http://10.21.51.90"

app.config.globalProperties.$image_01_001 = {"x":10, "y":10,"radius":10, "color":"red"}

import "./permission"

app.mount('#app')